<template>
  <div id="item-bank" class="jx-content">
    <div class="search-box fl">
      <el-form :inline="true" ref="searchForm" :model="searchForm" label-width="80px">
        <el-form-item label="年份">
          <el-date-picker v-model="searchForm.valueYear" type="year" placeholder="选择年">
          </el-date-picker>
        </el-form-item>
        <el-form-item label="班级">
          <el-select v-model="searchForm.region" placeholder>
            <el-option label="区域一" value="shanghai"></el-option>
            <el-option label="区域二" value="beijing"></el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="状态">
          <el-select v-model="searchForm.region" placeholder>
            <el-option label="区域一" value="shanghai"></el-option>
            <el-option label="区域二" value="beijing"></el-option>
          </el-select>
        </el-form-item>
        <el-form-item label="类型">
          <el-select v-model="searchForm.region" placeholder>
            <el-option label="区域一区域一区域一区域一区域一区域一区域一区域一" value="shanghai"></el-option>
            <el-option label="区域二" value="beijing"></el-option>
          </el-select>
        </el-form-item>
        <el-form-item>
          <div class="button-style">搜 索</div>
        </el-form-item>
      </el-form>
    </div>
    <div class="btn-group fr">
      <el-form :inline="true">
        <el-form-item>
          <div class="button-style">查重设置</div>
        </el-form-item>
      </el-form>
    </div>
    <div class="clear"></div>
    <div class="c-btn-blue">注：此列表按照默认班级检索</div>
    <el-table :data="tableData" style="width: 100%">
      <el-table-column type="index" width="50">
      </el-table-column>
      <el-table-column prop="date" label="班级名称"></el-table-column>
      <el-table-column prop="name" label="年份"></el-table-column>
      <el-table-column prop="address" label="章节名称"></el-table-column>
      <el-table-column prop="laiyuan" label="类型"></el-table-column>
      <el-table-column width="275" label="提交进度">
        <template slot-scope="scope">
          <div class="progress-box">
            <div class="progress-line">
              <el-progress color="#385899" :show-text="false" :text-inside="true" :percentage="50"></el-progress>
            </div>
            <div>已交1/20人</div>
          </div>
        </template>
      </el-table-column>
      <el-table-column fixed="right" label="操作" width="200">
        <template slot-scope="scope">
          <router-link to="/studentsSubmitDetailsList">学生提交详情</router-link>
        </template>
      </el-table-column>
    </el-table>
    <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="currentPage" :page-size="100" layout="total, prev, pager, next, jumper" :total="400"></el-pagination>
  </div>
</template>
<script>
export default {
  data() {
    return {
      searchForm: {
        valueYear: "2018",
        name: "",
        region: "",
        date1: "",
        date2: "",
        delivery: false,
        type: [],
        resource: "",
        desc: ""
      },
      currentPage: 10,
      tableData: [
        {
          date: "2016-05-02",
          name: "王小虎",
          address: "上海市普陀区金沙江路 1518 弄",
          laiyuan: "laiyuan"
        },
        {
          date: "2016-05-04",
          name: "王小虎",
          address: "上海市普陀区金沙江路 1517 弄",
          laiyuan: "laiyuan"
        },
        {
          date: "2016-05-01",
          name: "王小虎",
          address:
            "上海市普陀区金沙江路 1519 弄上海市普陀区金沙江路 1519 弄上海市普陀区金沙江路 1519 弄",
          laiyuan: "laiyuan"
        },
        {
          date: "2016-05-03",
          name: "王小虎",
          address: "上海市普陀区金沙江路 1516 弄",
          laiyuan: "laiyuan"
        }
      ]
    };
  },
  mounted() {
    this.init();
  },
  methods: {
    init() {},
    handleSizeChange() {},
    handleCurrentChange() {}
  }
};
</script>
<style lang="scss">
@import "../../../styles/layout/color_variables";
#item-bank {
  width: 1200px;
  margin: 50px auto;
  .dialog-questions {
    .dialog-content {
      padding: 20px 64px 0;
      .question-title {
        font-weight: bold;
        font-size: 16px;
        margin-bottom: 20px;
      }
      .question-chose {
        font-size: 14px;
        line-height: 24px;
        padding: 6px 0;
        display: flex;
        .question-flex {
          flex: 1;
        }
      }
      .question-answer {
        font-size: 16px;
        .chose {
          font-size: 18px;
          color: #385899;
          vertical-align: -2px;
        }
        margin-top: 20px;
      }
    }
    .el-dialog__footer {
      text-align: center;
    }
  }
  .dialog-import-questions {
    .dialog-content {
      text-align: center;
      padding: 60px 0 40px;
    }
    .el-dialog__footer {
      text-align: center;
    }
  }
  .progress-box {
    display: flex;
    justify-content: center;
    align-items: center;
    .progress-line {
      flex: 1;
      margin-right: 10px;
    }
  }
}
</style>
